package com.ktkj.init.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * The type Dict condition.
 *
 * @author :yanlixiong
 * @date :2020-11-06 17:20:10
 */
@ApiModel
@Data
public class DictCondition extends PageCondition {

    @ApiModelProperty(value = "描述", example = "中国")
    private String descs;

    @ApiModelProperty(value = "类型", example = "country")
    private String type;

    @ApiModelProperty(value = "父id", example = "1")
    private Long parentId;

    @ApiModelProperty(value = "节点类型(dir：目录 data：数据)", example = "dir")
    private String manageType;

    @ApiModelProperty(value = "排序", example = "id desc,create_date desc")
    private String orderBy;

    public DictCondition() {
    }

    public DictCondition(String descs, Long parentId) {
        this.descs = descs;
        this.parentId = parentId;
    }

    public DictCondition(String descs, String type, Long parentId) {
        this.descs = descs;
        this.type = type;
        this.parentId = parentId;
    }
}
